<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@	taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript"
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		// xxxx
		$("#username, #password").focus(function() {
			if ($(this).val() === $(this).attr("value")) {
				$(this).val("");
			}
		}).blur(function() {
			if ($(this).val() === "") {
				$(this).val($(this).attr("value"));
			}
		});
		
		// 注册页面
		$('#registe').click(function(){
			window.location.href = "<%=request.getContextPath()%>/admin/registe.jsp";
		});
	});
</script>
<link rel="stylesheet" href="kernel/css/login/login.css">
<style type="text/css">
	formName{
		overflow:hidden;
		height:20px;
		line-height:10px;
		white-space: nowrap;
	}

</style>
</head>
<body>
<form action="user_login" method="post">
	<table width="400" border="0" align="center" cellpadding="05" cellspacing="0" id="logintable">
		<tr>
			<td colspan="2"><div class="message">欢迎登录</div></td>
		</tr>
		<tr>
			<td align="right"><div class="formName">用户名：</div></td>
			<td><s:textfield name="user.userName" id="username" value="用户名"/></td>
		</tr>
		<tr>
			<td align="right"><div class="formName"> 密码：</div></td>
			<td><s:password name="user.passWord" type="password" id="password" value="密码"/></td>
		</tr>
		<tr>
			
		</tr>
		<tr>
			<td></td>
			<td>
				<input type="submit"  class="submit" value="提交">
				<input type="button"  class="submit" value="注册" id="registe" >
			</td>
		</tr>
	</table>
</form>
</body>